'use strict';
module.exports = app => {
  // 规格表
  const {STRING, INTEGER} = app.Sequelize;
  const Specification = app.model.define('s_specification', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    user_id: {
      type: INTEGER,
      comment: '用户id',
      allowNull: false,
    },
    project_id: {
      type: INTEGER,
      comment: '项目id',
      allowNull: false,
    },
    name: {
      type: STRING,
      comment: '规格名称',
    },
  });

  return Specification;
};
